package com.sy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(description = "订单实体")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Orders  implements Serializable {
  @TableId(type = IdType.AUTO)
  private Long id;
  @ApiModelProperty("订单号")
  private String number;
  @ApiModelProperty("下单用户的id")
  private Long userId;
  @ApiModelProperty("下单时间")
  private LocalDateTime orderTime;
  @ApiModelProperty("结账时间")
  private LocalDateTime checkoutTime;
  @ApiModelProperty("支付方式，1：微信，2支付宝")
  private Integer payMethod;
  @ApiModelProperty("支付状态 0未支付 1已支付 2退款")
  private Integer payStatus;
  @ApiModelProperty("订单金额")
  private Double amount;
  @ApiModelProperty("购买的课程id")
  private Integer courseId;
}
